package com.hytc.mymall.base;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Joker on 2016/12/1.
 */

public class MyBaseAdapter<T> extends BaseAdapter
{
    public Context context;
    public List<T> list;
    public Map<Integer, View> lmap;

    public MyBaseAdapter(final Context context, final List<T> list) {
        this.lmap = new HashMap<Integer, View>();
        this.list = list;
        this.context = context;
    }

    public int getCount() {
        return this.list.size();
    }

    public Object getItem(final int n) {
        return this.list.get(n);
    }

    public long getItemId(final int n) {
        return n;
    }

    public View getView(final int n, final View view, final ViewGroup viewGroup) {
        return null;
    }
}
